const { mongoose } = require('../utils/db')

// 创建hoom模型规则
var myRoom = mongoose.Schema({
  avatar: { type: String },
  gender: { type: String },
  name: { type: String }, // 账号
  password: { type: String, required: true },  // 密码
  phone: { type: String, required: true },  // 电话号
})


// 学生模型实例
var Room = mongoose.model('students', myRoom)

module.exports = {
  Room
}